package be.kuleuven.cs.mop.gui.components;


import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;



public abstract class Component extends JPanel {
	private static final long serialVersionUID = 1L;
	
	
	protected Component() {
		super(new GridBagLayout());
		setFocusable(false);
	}
	
	
	
	protected final GridBagConstraints getGBC() {
		final GridBagConstraints gbc = new GridBagConstraints();
		gbc.anchor	= GridBagConstraints.FIRST_LINE_START;
		gbc.fill	= GridBagConstraints.NONE;
		return gbc;
	}
	
	
	
	
	
	
	
	
	
	
	protected static class Label extends JLabel {
		private static final long serialVersionUID = 1L;
		
		
		protected Label(final String text) {
			super(text);
			setFocusable(false);
		}
		
		
		
		@Override
		public Dimension getPreferredSize() {
			final Dimension dim = super.getPreferredSize();
			dim.height = 25;
			return dim;
		}
		
	}
	
}